package dao.impl;

import org.apache.ibatis.session.SqlSession;

import dao.CountDao;
import factory.SessionFactoryUtil;

//首页 本公司及托管车辆统计
public class CountDaoImpl implements CountDao {
	
	public int selectMyCar(String i) {
		SqlSession session = null;
		session = SessionFactoryUtil.getSession();
		int returnMycar = session.selectOne("dao.impl.UserDaoImpl.our", i);
		session.close();
		return returnMycar;
	}

	public int selectYouCar(String i) {
		SqlSession session = null;
		session = SessionFactoryUtil.getSession();
		int returnYoucar = session.selectOne("dao.impl.UserDaoImpl.tru", i);
		session.close();
		return returnYoucar;
	}
}
